<template>
	<view class="my-search-container">
		<view class="my-search-box" @click="handlerSearch">
			<!-- uni-ui提供的组件 -->
			<uni-icons type="search" size="30"></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "my-search",
		data() {
			return {

			};
		},
		methods: {
			handlerSearch() {
				this.$emit('doClick')
			}
		}
	}
</script>

<style lang="scss">
	.my-search-container {
		height: 100rpx;
		background-color: #c00000;
		display: flex;
		align-items: center;
		padding: 0 10rpx;

		.my-search-box {
			height: 72rpx;
			width: 100%;
			background-color: #fff;
			border-radius: 36rpx;
			display: flex;
			align-items: center;
			justify-content: center;

			.placeholder {
				font-size: 30rpx;
				margin-left: 10rpx;
			}
		}
	}
</style>
